package com.gxa.modules.sys.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.modules.sys.entity.Duration;
import com.gxa.modules.sys.mapper.DurationMapper;
import com.gxa.modules.sys.service.DurationService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DurationServiceImpl extends ServiceImpl<DurationMapper, Duration> implements DurationService {
    @Override
    public List<Duration> queryAll() {
        List<Duration> durations = this.baseMapper.selectList(null);
        return durations;
    }

    @Override
    public void updateTime(Integer redemptionDuration) {
        this.baseMapper.updateTime(redemptionDuration);
    }
}
